package com.java1412.user.controller;

import com.java1412.user.service.UserService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author java1412
 * @since 2024-04-23 17:00:54
 */
@RestController
@RequestMapping(value = "/api/v1/user")
public class UserController {

    @Resource
    private UserService userService;

    @RequestMapping(value = "/findByUserId")
    public Object findByUserId(Integer userId) {
        return userService.findById(userId);
    }
}
